package ren.steve.annotation;

import ren.steve.enums.BusinessType;
import ren.steve.enums.OperatorType;

import java.lang.annotation.*;

/**
 * @Author: CIS-T-13 Liu GuoJia
 * @Description:
 * @Date: Created in 2024/2/8 15:56
 */

@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {
  /**
   * 模块
   */
  public String title() default "";
  /**
   * 功能
   */
  public BusinessType businessType() default BusinessType.OTHER;
  /**
   * 类型
   */
  public OperatorType operatorType() default OperatorType.MANAGE;
  /**
   * 是否保存请求的参数
   */
  public boolean isSaveRequestData() default true;
  /**
   * 是否保存响应参数
   */
  public boolean isSaveResponseData() default true;

}
